package CharacterString;

import java.util.Scanner;

public class capture_sub {
    public static void main(String[] args) {
        //substitute 替代

        String phone = "13592994916";
        System.out.println(phone.substring(0,4));

        Scanner sc = new Scanner(System.in);
        int user = sc.nextInt();
        char getnum = phone.charAt(user); //string -- > char 48-- 57
        int num = getnum - 48;  //48 -- > 0 差值
        System.out.println(num); //
        char gender ;
        if (num % 2 ==  0){
            gender = '女';
        }else {
            gender = '男';
        }
        System.out.println(gender);
    }
}
